<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="Hexo Theme Keep">
    <meta name="description" content="Hexo Theme Keep">
    <meta name="author" content="Blank">
    
    <title>
        
            DWM 窗口管理器安装及配置 |
        
        Blankの博客
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    <link rel="shortcut icon" href="/images/logo.jpg">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/fontawesome.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/regular.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/solid.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/brands.min.css">
    <script id="hexo-configurations">
    let KEEP = window.KEEP || {}
    KEEP.hexo_config = {"hostname":"example.com","root":"/","language":"zh-CN","path":"search.json"}
    KEEP.theme_config = {"toc":{"enable":true,"number":true,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066cc","logo":"/images/logo.jpg","favicon":"/images/logo.jpg","avatar":"/images/logo.jpg","font_size":"18px","font_family":"STKaiti","hover":{"shadow":true,"scale":true},"first_screen":{"enable":true,"header_transparent":true,"background_img":"/images/bg.svg","description":"Keep writing and Keep loving.","font_color":null,"hitokoto":true},"scroll":{"progress_bar":true,"percent":true}},"local_search":{"enable":true,"preload":true},"code_copy":{},"code_block":{"tools":{"enable":true,"style":"mac"},"highlight_theme":"default"},"side_tools":{},"pjax":{"enable":true},"lazyload":{"enable":true},"comment":{"enable":false,"use":"gitalk","valine":{"appid":null,"appkey":null,"server_urls":null,"placeholder":null},"gitalk":{"github_id":"5ober","github_admins":"5ober","repository":"hexo-blog-comments","client_id":"40d85a7b36388c0b5094","client_secret":"6c7eab92d24b6f1bdfbcdf077c73e86841b35d5e","proxy":null},"twikoo":{"env_id":null,"region":null,"version":"1.6.8"},"waline":{"server_url":null,"reaction":false,"version":2}},"post":{"author_label":{"enable":true,"auto":false,"custom_label_list":["Trainee","Engineer","Java工程师"]},"word_count":{"enable":true,"wordcount":true,"min2read":true},"img_align":"left","copyright_info":true},"version":"3.6.1"}
    KEEP.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 个月前","year":"%s 年前"}
    KEEP.language_code_block = {"copy":"复制代码","copied":"已复制","fold":"折叠代码块","folded":"已折叠"}
    KEEP.language_copy_copyright = {"copy":"复制版权信息","copied":"已复制","title":"原文标题","author":"原文作者","link":"原文链接"}
  </script>
<meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/atom.xml" title="Blankの博客" type="application/atom+xml">
</head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
        <span class="pjax-progress-bar"></span>
        <i class="pjax-progress-icon fas fa-circle-notch fa-spin"></i>
    
</div>


<main class="page-container">

    

    <div class="page-main-content">

        <div class="page-main-content-top">
            
<header class="header-wrapper">

    <div class="header-content">
        <div class="left">
            
                <a class="logo-image" href="/">
                    <img src="/images/logo.jpg">
                </a>
            
            <a class="logo-title" href="/">
               Blankの博客
            </a>
        </div>

        <div class="right">
            <div class="pc">
                <ul class="menu-list">
                    
                        <li class="menu-item">
                            <a class=""
                               href="/"
                            >
                                首页
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/archives"
                            >
                                归档
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/tags"
                            >
                                标签
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/categories"
                            >
                                分类
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/links"
                            >
                                友链
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/about"
                            >
                                关于
                            </a>
                        </li>
                    
                    
                        <li class="menu-item search search-popup-trigger">
                            <i class="fas fa-search"></i>
                        </li>
                    
                </ul>
            </div>
            <div class="mobile">
                
                    <div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
                
                <div class="icon-item menu-bar">
                    <div class="menu-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="header-drawer">
        <ul class="drawer-menu-list">
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/">首页</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/archives">归档</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/tags">标签</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/categories">分类</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/links">友链</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/about">关于</a>
                </li>
            
        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="page-main-content-middle">

            <div class="main-content">

                
                    <div class="fade-in-down-animation">
    <div class="post-page-container">
        <div class="article-content-container">

            <div class="article-title">
                <span class="title-hover-animation">DWM 窗口管理器安装及配置</span>
            </div>

            
                <div class="article-header">
                    <div class="avatar">
                        <img src="/images/logo.jpg">
                    </div>
                    <div class="info">
                        <div class="author">
                            <span class="name">Blank</span>
                            
                                <span class="author-label">Java工程师</span>
                            
                        </div>
                        <div class="meta-info">
                            
<div class="article-meta-info">
    <span class="article-date article-meta-item">
        
            <i class="fa-regular fa-calendar-plus"></i>&nbsp;
        
        <span class="pc">2023-04-26 00:00:00</span>
        <span class="mobile">2023-04-26 00:00</span>
    </span>
    
        <span class="article-update-date article-meta-item">
        <i class="fas fa-file-pen"></i>&nbsp;
        <span class="pc">2023-04-26 01:30:53</span>
    </span>
    
    
        <span class="article-categories article-meta-item">
            <i class="fas fa-folder"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/categories/ArchLinux-DWM/">ArchLinux DWM</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    
    
        <span class="article-tags article-meta-item">
            <i class="fas fa-tags"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/tags/Linux/">Linux</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    

    
    
        <span class="article-wordcount article-meta-item">
            <i class="fas fa-file-word"></i>&nbsp;<span>979 字</span>
        </span>
    
    
        <span class="article-min2read article-meta-item">
            <i class="fas fa-clock"></i>&nbsp;<span>5 分钟</span>
        </span>
    
    
        <span class="article-pv article-meta-item">
            <i class="fas fa-eye"></i>&nbsp;<span id="busuanzi_value_page_pv"></span>
        </span>
    
</div>

                        </div>
                    </div>
                </div>
            

            <div class="article-content keep-markdown-body">
                

                <h2 id="DWM窗口管理器安装及配置"><a href="#DWM窗口管理器安装及配置" class="headerlink" title="ＤＷＭ窗口管理器安装及配置"></a>ＤＷＭ窗口管理器安装及配置</h2><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl disable gdm.service</span><br><span class="line"><span class="comment"># 卸载桌面环境</span></span><br><span class="line">sudo pacman -Rscn gnome gnome-extra gdm</span><br><span class="line"></span><br><span class="line">cd Downloads/</span><br><span class="line"></span><br><span class="line">git clone https://git.suckless.org/dwm</span><br><span class="line"></span><br><span class="line">git clone https://git.suckless.org/st</span><br><span class="line"></span><br><span class="line">git clone https://git.suckless.org/dmenu</span><br><span class="line"></span><br><span class="line">cd dwm/  </span><br><span class="line"></span><br><span class="line">cd st/  </span><br><span class="line"></span><br><span class="line">cd dmenu/  </span><br><span class="line"></span><br><span class="line">sudo make clean install</span><br><span class="line"></span><br><span class="line">sudo pacman -S xorg-xinit feh udisks2 udiskie pcmanfm</span><br><span class="line"></span><br><span class="line">cp /etc/X11/xinit/xinitrc ~/.xinitrc</span><br><span class="line"></span><br><span class="line">cd </span><br><span class="line"></span><br><span class="line">ls -al</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">sudo vim .xinitrc</span><br><span class="line"></span><br><span class="line">exec dwm</span><br><span class="line"></span><br><span class="line"><span class="comment">#开启dwm</span></span><br><span class="line">startx</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">#查看分辨率</span></span><br><span class="line">xrandr -q </span><br><span class="line"><span class="comment"># 设置分辨率</span></span><br><span class="line">xrandr --output virtual-1 --mode 1920X1080 --rate 60.00</span><br><span class="line"></span><br><span class="line">cd Downloads/dwm/</span><br><span class="line">ls</span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装壁纸</span></span><br><span class="line">sudo pacman -S archlinux-wallpaper</span><br><span class="line"><span class="comment"># 壁纸路径</span></span><br><span class="line">cd /usr/share/backgrounds/archlinux/</span><br><span class="line">ls</span><br><span class="line">feh </span><br><span class="line">feh --bg-fill --randomize /usr/share/backgrounds/archlinux/*</span><br><span class="line"></span><br><span class="line">cd</span><br><span class="line">sudo vim .xinitrc</span><br><span class="line"></span><br><span class="line"><span class="comment"># input method</span></span><br><span class="line">fcitx5 &amp;</span><br><span class="line"><span class="comment"># wallpaper</span></span><br><span class="line">feh --bg-fill --randomize /usr/share/backgrounds/archlinux/*</span><br><span class="line"></span><br><span class="line"><span class="comment">#resolution</span></span><br><span class="line">xrandr --output virtual-1 --mode 1920X1080 --rate 60.00</span><br><span class="line"><span class="comment"># 开启u盘驱动</span></span><br><span class="line">sudo systemctl enable udisks2</span><br></pre></td></tr></table></figure>



<p>alt + shi+ q  退出dwm</p>
<p>win +shi +回车 进入 st</p>
<h4 id="DWM设置状态栏"><a href="#DWM设置状态栏" class="headerlink" title="DWM设置状态栏"></a>DWM设置状态栏</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置字体</span></span><br><span class="line">sudo pacman -S wqy-microhei ttf-nerd-fonts-symbols</span><br><span class="line"></span><br><span class="line">fc-list |grep &quot;WenQuanYi&quot;</span><br><span class="line"></span><br><span class="line">&quot;monospace : size=10&quot;,&quot;WenQuanYi Micro Hei : style=Regular : antalias = true : autohint = true&quot; ,</span><br><span class="line"></span><br><span class="line">&quot;JetBrainsMono Nerd Font:style=pixelsize=14 type=2048-em : antalias = true : autohint = true&quot;, &quot;monospace:size=13&quot;</span><br><span class="line"></span><br><span class="line">&quot;JetBrainsMono Nerd Font:style=medium:size=13&quot;, &quot;monospace:size=13&quot;</span><br></pre></td></tr></table></figure>



<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">static const char *fonts[]          = &#123; &quot;monospace:size=10&quot;,</span><br><span class="line">                    &quot;WenQuanYi Micro Hei:size=10:type=Regular:antalias=true:autohint=true&quot; ,</span><br><span class="line">                    &quot;JoyPixes:pixelsize=12:type=Regular:antalias=true:autohint=true&quot; ,</span><br><span class="line">                    &quot;JetBrainsMono Nerd Font:pixelsize=14 type=2048-em:antalias=true:autohint=true&quot; &#125;;</span><br></pre></td></tr></table></figure>



<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git clone https://git.suckless.org/slstatus</span><br><span class="line"></span><br><span class="line">exec slstatus &amp;</span><br></pre></td></tr></table></figure>

<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br></pre></td><td class="code"><pre><span class="line">uname -r</span><br><span class="line">uname -r | awk -F &quot;-&quot; &#x27;&#123;print $1&#125;&#x27;</span><br><span class="line">&#123;run_command,	&quot;󰣇%s |&quot;,	&quot;uname -r | awk -F \&quot;-\&quot; &#x27;&#123;print $1&#125;&#x27;&quot;&#125;,</span><br><span class="line">&#123;disk_free,	&quot; %s |&quot;,	&quot;/&quot;&#125;,</span><br><span class="line">&#123;cpu_perc,	&quot;󰘚 %s%% |&quot;,	NULL&#125;,</span><br><span class="line">&#123;ram_perc,	&quot; %s%% |&quot;,	NULL&#125;,</span><br><span class="line">&#123;run_command,	&quot; %s |&quot;,	&quot;amixer sget Master | awk -F \&quot;[][]\&quot; &#x27;/Left:/&#123;print $2&#125;&#x27;&quot;&#125;,</span><br><span class="line">&#123;run_command,	&quot;%s | &quot;,	&quot;amixer sget Capture | awk -F \&quot;[][]\&quot; &#x27;/Left:/&#123;print $2&#125;&#x27;&quot;&#125;,</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">sudo pacman -S alsa-utils</span><br><span class="line">man amixer</span><br><span class="line">amixer sget Master</span><br><span class="line">amixer sget Master | awk -F &quot;[][]&quot; &#x27;&#123;print $1&#125;&#x27;</span><br><span class="line">amixer sget Master | awk -F &quot;[][]&quot; &#x27;&#123;print $2&#125;&#x27;</span><br><span class="line">amixer sget Master | awk -F &quot;[][]&quot; &#x27;/Left:/&#123;print $2&#125;&#x27;</span><br><span class="line"></span><br><span class="line">sudo pacman -S ttf-joypixels</span><br><span class="line"></span><br><span class="line">sudo pacman -S alsa-utils</span><br><span class="line"></span><br><span class="line">amixer sset Master 5%- unmute</span><br><span class="line">amixer sset Master 5%+ unmute</span><br><span class="line">amixer sset Master toggle</span><br><span class="line">sudo chown sober:sober voldoup.sh voldown.sh voldtoggle.sh</span><br><span class="line">chmod +x voldoup.sh voldown.sh voldtoggle.sh</span><br><span class="line"></span><br><span class="line">/home/sober/Downloads/dwm/voldoup.sh</span><br><span class="line">/home/sober/Downloads/dwm/voldown.sh</span><br><span class="line">/home/sober/Downloads/dwm/voldtoggle.sh</span><br><span class="line"></span><br><span class="line">sudo pacman -S light</span><br><span class="line"></span><br><span class="line">sudo nano lightdown.sh</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">!/bin/bash</span></span><br><span class="line">light -U 10</span><br><span class="line"></span><br><span class="line">sudo nano lightup.sh</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">!/bin/bash</span></span><br><span class="line">lifht -A 10</span><br><span class="line"></span><br><span class="line">sudo chown sober:sober lightdown.sh lightup.sh</span><br><span class="line">chmod +x voldoup.sh lightdown.sh lightup.sh</span><br><span class="line"></span><br><span class="line">/home/sober/Downloads/dwm/lightup.sh</span><br><span class="line">/home/sober/Downloads/dwm/lightdown.sh</span><br><span class="line"></span><br><span class="line">static const char *lightup[]  = &#123; &quot;/home/sober/Downloads/dwm/lightup.sh&quot;, NULL &#125;;</span><br><span class="line">static const char *lightdown[]  = &#123; &quot;/home/sober/Downloads/dwm/lightdown.sh&quot;, NULL &#125;;</span><br><span class="line"></span><br><span class="line"> 		&#123; MODKEY,                       XK_F12,      spawn,          &#123;.v = lightup &#125; &#125;,</span><br><span class="line">        &#123; MODKEY,                       XK_F11,      spawn,          &#123;.v = lightdown &#125; &#125;,</span><br></pre></td></tr></table></figure>

<h3 id="git-让dwm打补丁suck-less！"><a href="#git-让dwm打补丁suck-less！" class="headerlink" title="git: 让dwm打补丁suck less！"></a>git: 让dwm打补丁suck less！</h3><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># make clean &amp;&amp; rm -f config.h &amp;&amp; git reset --hard origih/master</span></span><br><span class="line">make clean</span><br><span class="line">git config user.name Blank</span><br><span class="line">git config user.email &quot;lucky0915z@163.com&quot;</span><br><span class="line"></span><br><span class="line">git branch</span><br><span class="line">git branch config</span><br><span class="line">git checkout config</span><br><span class="line">ls</span><br><span class="line">sudo cp config.h config.def.h</span><br><span class="line">git add config.def.h</span><br><span class="line">git commit -m &quot;config&quot;</span><br><span class="line"></span><br><span class="line">git merge config -m &quot;config&quot;</span><br><span class="line"></span><br><span class="line">make clean &amp;&amp; rm -f config.h</span><br><span class="line">git branch fullgaps</span><br><span class="line">patch -p1 -F 0 &lt; dwm-fullgaps-20200508-7b77734.diff</span><br><span class="line">git add config.def.h dwm.1 dwm.c</span><br><span class="line"></span><br><span class="line"><span class="comment"># 打补丁命令</span></span><br><span class="line">patch -p1 -F 0 &lt; dwm-fullgaps-20200508-7b77734.diff</span><br><span class="line"><span class="comment"># 简写</span></span><br><span class="line">patch &lt; dwm-fullgaps-20200508-7b77734.diff</span><br><span class="line"></span><br><span class="line">patching file config.def.h</span><br><span class="line">Hunk <span class="comment">#2 succeeded at 112 (offset 27 lines).</span></span><br><span class="line">patching file dwm.1</span><br><span class="line">patching file dwm.c</span><br><span class="line">Hunk <span class="comment">#3 succeeded at 643 (offset 2 lines).</span></span><br><span class="line">Hunk <span class="comment">#4 succeeded at 1510 (offset 9 lines).</span></span><br><span class="line">Hunk <span class="comment">#5 succeeded at 1710 (offset 13 lines).</span></span><br><span class="line">~/Downloads/dwm<span class="section">[fullgaps~]</span> git add config.def.h dwm.1 dwm.c</span><br><span class="line">~/Downloads/dwm<span class="section">[fullgaps~]</span> git commit -m &quot;fullgaps&quot;        </span><br><span class="line"><span class="section">[fullgaps e7e4297]</span> fullgaps</span><br><span class="line"> 3 files changed, 37 insertions(+), 10 deletions(-)</span><br><span class="line">~/Downloads/dwm<span class="section">[fullgaps~]</span> git checkout master     </span><br><span class="line">切换到分支 &#x27;master&#x27;</span><br><span class="line">您的分支领先 &#x27;origin/master&#x27; 共 1 个提交。</span><br><span class="line">  （使用 &quot;git push&quot; 来发布您的本地提交）</span><br><span class="line">~/Downloads/dwm<span class="section">[master~]</span> git merge fullgaps -m &quot;fullgaps&quot;</span><br><span class="line">更新 49d7aad..e7e4297</span><br><span class="line">Fast-forward (no commit created<span class="comment">; -m option ignored)</span></span><br><span class="line"> config.def.h |  4 ++++</span><br><span class="line"> dwm.1        | 10 ++++++++++</span><br><span class="line"> dwm.c        | 33 +++++++++++++++++++++++----------</span><br><span class="line"> 3 files changed, 37 insertions(+), 10 deletions(-)</span><br><span class="line">~/Downloads/dwm<span class="section">[master~]</span> git merge config -m &quot;config&quot;    </span><br><span class="line">已经是最新的。</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>make &amp;&amp; sudo make clean install</p>
<h3 id="st-打补丁"><a href="#st-打补丁" class="headerlink" title="st 打补丁"></a>st 打补丁</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S picom kdiff3</span><br><span class="line"></span><br><span class="line">sudo vim .xinitrc</span><br><span class="line"></span><br><span class="line">picom -b 加入.xinitrc 配置里</span><br><span class="line"></span><br><span class="line">sudo nano /etc/xdg/picom.conf</span><br><span class="line"></span><br><span class="line">虚拟机搜索vs这行注释掉</span><br></pre></td></tr></table></figure>



<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"># git比对工具</span><br><span class="line"></span><br><span class="line">git config --global</span><br><span class="line"></span><br><span class="line">git config --global merge.tool kdiff3</span><br></pre></td></tr></table></figure>



<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">*.color0:<span class="comment">#3b4252</span></span><br><span class="line">*.color1：<span class="comment">#bf616a</span></span><br><span class="line">*.color2：<span class="comment">#a3be8c</span></span><br><span class="line">*.color3：<span class="comment">#ebcb8b</span></span><br><span class="line">*.color4：<span class="comment">#81a1c1</span></span><br><span class="line">*.color5：<span class="comment">#b48ead</span></span><br><span class="line">*.color6：<span class="comment">#88c0d0&quot;</span></span><br><span class="line">*.color7：<span class="comment">#e5e9f0&quot;</span></span><br><span class="line">*.color8：<span class="comment">#4c566a</span></span><br><span class="line">*.color9：<span class="comment">#bf616a</span></span><br><span class="line">*.color10:<span class="comment">#a3be8c</span></span><br><span class="line">*.color11：<span class="comment">#ebcb8b</span></span><br><span class="line">*.color12：<span class="comment">#81a1c1</span></span><br><span class="line">*.color13：<span class="comment">#b48ead</span></span><br><span class="line">*.color14：<span class="comment">#8fbcbb</span></span><br><span class="line">*.color15:<span class="comment">#eceff4</span></span><br><span class="line">*.foreground：<span class="comment">#d8dee9</span></span><br><span class="line">*.background：<span class="comment">#2e3440</span></span><br><span class="line">*.color256:<span class="comment">#cccccc</span></span><br><span class="line">*.color257:<span class="comment">#555555</span></span><br><span class="line"></span><br><span class="line">xrdb ~/.Xresource</span><br></pre></td></tr></table></figure>


            </div>

            
                <div class="post-copyright-info">
                    
<div class="article-copyright-info-container">
    <ul class="copyright-info-content">
        <li class="post-title">
            <span class="type">本文标题</span>：<span class="content">DWM 窗口管理器安装及配置</span>
        </li>
        <li class="post-author">
            <span class="type">本文作者</span>：<span class="content">Blank</span>
        </li>
        <li class="post-time">
            <span class="type">创建时间</span>：<span class="content">2023-04-26 00:00:00</span>
        </li>
        <li class="post-link">
            <span class="type">本文链接</span>：<span class="content">2023/04/26/ＤＷＭ窗口管理器安装及配置/</span>
        </li>
        <li class="post-license">
            <span class="type">版权声明</span>：<span class="content">本博客所有文章除特别声明外，均采用 <a class="license" target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">BY-NC-SA</a> 许可协议。转载请注明出处！</span>
        </li>
    </ul>
    <div class="copy-copyright-info flex-center tooltip" data-content="复制版权信息" data-offset-y="-2px">
        <i class="fa-solid fa-copy"></i>
    </div>
</div>

                </div>
            

            
                <ul class="post-tags-box">
                    
                        <li class="tag-item">
                            <a href="/tags/Linux/">#Linux</a>&nbsp;
                        </li>
                    
                </ul>
            

            
                <div class="article-nav">
                    
                        <div class="article-prev">
                            <a class="prev"
                               rel="prev"
                               href="/2023/04/26/zsh%20fd%20%E5%8F%8Aoh%20my%20zsh%E9%85%8D%E7%BD%AE/"
                            >
                            <span class="left arrow-icon flex-center">
                              <i class="fas fa-chevron-left"></i>
                            </span>
                                <span class="title flex-center">
                                <span class="post-nav-title-item">zsh fd 及oh my zsh配置</span>
                                <span class="post-nav-item">上一篇</span>
                            </span>
                            </a>
                        </div>
                    
                    
                        <div class="article-next">
                            <a class="next"
                               rel="next"
                               href="/2023/04/05/Deepin%E5%92%8CUOS%E7%B3%BB%E7%BB%9F%E8%BF%9C%E7%A8%8Bssh%E9%85%8D%E7%BD%AE/"
                            >
                            <span class="title flex-center">
                                <span class="post-nav-title-item">Deepin和UOS系统远程ssh配置</span>
                                <span class="post-nav-item">下一篇</span>
                            </span>
                                <span class="right arrow-icon flex-center">
                              <i class="fas fa-chevron-right"></i>
                            </span>
                            </a>
                        </div>
                    
                </div>
            

            
        </div>

        
            <div class="toc-content-container">
                <div class="post-toc-wrap">
    <div class="post-toc">
        <ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#DWM%E7%AA%97%E5%8F%A3%E7%AE%A1%E7%90%86%E5%99%A8%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE"><span class="nav-number">1.</span> <span class="nav-text">ＤＷＭ窗口管理器安装及配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#DWM%E8%AE%BE%E7%BD%AE%E7%8A%B6%E6%80%81%E6%A0%8F"><span class="nav-number">1.0.1.</span> <span class="nav-text">DWM设置状态栏</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#git-%E8%AE%A9dwm%E6%89%93%E8%A1%A5%E4%B8%81suck-less%EF%BC%81"><span class="nav-number">1.1.</span> <span class="nav-text">git: 让dwm打补丁suck less！</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#st-%E6%89%93%E8%A1%A5%E4%B8%81"><span class="nav-number">1.2.</span> <span class="nav-text">st 打补丁</span></a></li></ol></li></ol>
    </div>
</div>

            </div>
        
    </div>
</div>


                
            </div>

        </div>

        <div class="page-main-content-bottom">
            
<footer class="footer">
    <div class="info-container">
        <div class="copyright-info info-item">
            &copy;
            
            2024
            
                &nbsp;<i class="fas fa-heart icon-animate"></i>
                &nbsp;<a href="/">Blank</a>
            
        </div>
        
            <script async data-pjax
                    src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            <div class="website-count info-item">
                
                
            </div>
        
        <div class="theme-info info-item">
            由 <a target="_blank" href="https://hexo.io">Hexo</a> 驱动&nbsp;|&nbsp;主题&nbsp;<a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.6.1</a>
        </div>
        
        
            <div class="deploy-info info-item">
                
                    <a target="_blank" rel="nofollow" href="https://gitee.com/lucky0915">
                
                    本站由 <span class="tooltip" data-content="Gitee Pages"><img src="/images/deploy-provider/gitee.png"></span> 提供部署服务
                
                    </a>
                
            </div>
        
    </div>
</footer>

        </div>
    </div>

    
        <div class="post-tools">
            <div class="post-tools-container">
    <ul class="tools-list">
        <!-- TOC aside toggle -->
        
            <li class="tools-item flex-center toggle-show-toc">
                <i class="fas fa-list"></i>
            </li>
        

        <!-- go comment -->
        
    </ul>
</div>

        </div>
    

    <div class="right-bottom-side-tools">
        <div class="side-tools-container">
    <ul class="side-tools-list">
        <li class="tools-item tool-font-adjust-plus flex-center">
            <i class="fas fa-search-plus"></i>
        </li>

        <li class="tools-item tool-font-adjust-minus flex-center">
            <i class="fas fa-search-minus"></i>
        </li>

        <li class="tools-item tool-dark-light-toggle flex-center">
            <i class="fas fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="tools-item tool-scroll-to-bottom flex-center">
            <i class="fas fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="exposed-tools-list">
        <li class="tools-item tool-toggle-show flex-center">
            <i class="fas fa-cog fa-spin"></i>
        </li>
        
            <li class="tools-item tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
    </ul>
</div>

    </div>

    <div class="zoom-in-image-mask">
    <img class="zoom-in-image">
</div>


    
        <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
          <span class="search-input-field-pre">
            <i class="fas fa-keyboard"></i>
          </span>
            <div class="search-input-container">
                <input autocomplete="off"
                       autocorrect="off"
                       autocapitalize="off"
                       placeholder="搜索..."
                       spellcheck="false"
                       type="search"
                       class="search-input"
                >
            </div>
            <span class="close-popup-btn">
                <i class="fas fa-times"></i>
            </span>
        </div>
        <div id="search-result">
            <div id="no-result">
                <i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
            </div>
        </div>
    </div>
</div>

    

</main>



<script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/utils.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/main.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/header-shrink.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/back2top.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/dark-light-toggle.js"></script>




    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/local-search.js"></script>



    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/code-block.js"></script>



    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/lazyload.js"></script>


<div class="post-scripts pjax">
    
        <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/post-helper.js"></script>
        
            <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/libs/anime.min.js"></script>
        
        
            <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/toc.js"></script>
        
    
</div>


    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/libs/pjax.min.js"></script>
<script>
    window.addEventListener('DOMContentLoaded', () => {
        window.pjax = new Pjax({
            selectors: [
                'head title',
                '.page-container',
                '.pjax'
            ],
            history: true,
            debug: false,
            cacheBust: false,
            timeout: 0,
            analytics: false,
            currentUrlFullReload: false,
            scrollRestoration: false,
            // scrollTo: true,
        });

        document.addEventListener('pjax:send', () => {
            KEEP.utils.pjaxProgressBarStart();
        });

        document.addEventListener('pjax:complete', () => {
            KEEP.utils.pjaxProgressBarEnd();
            window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
            KEEP.refresh();
        });
    });
</script>



</body>
</html>
